<head>
    <title>ajax长轮询</title>
    <meta charset="utf-8" />
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <script src="../js/jquery-1.11.3.min.js"></script>
    <script>

        while(true){
            $.ajax({
                url:"/test2",
                success:function(data){
                    console.log(data);
                },
                async:false
            })
        }

    </script>

</head>
<body>




</body>